﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebMassage.Models.KTVInfo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Massage - Kỹ thuật viên
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <link href="<%= Url.Content("~/Content/CSS/Black/ktv.css") %>" rel="stylesheet" type="text/css" />
    <link href="<%= Url.Content("~/Content/CSS/Black/dialog.css") %>" rel="stylesheet" type="text/css" />

    <script src="<%= Url.Content("~/Scripts/ktv.js") %>" type="text/javascript"></script>
  
    <div id="contentktv">
        </div>
        <div id="ktvslide">
            <div id="caption">
                </div>
        </div>
       <script type="text/javascript">
           //khai bao cac gia tri
           var linkktv = "/KTV/GetListFirstKtvPic?frm=0&to=10";
           var liinfor = "/KTV/GetKtvInfoByNum?num=";
           var numpp = 10;
           $(document).ready(function () {
               $.getJSON(linkktv, function (data) {
                   filldata(data, "#contentktv");
                   $('#contentktv').tabs();
                   var ktv = window.location.href.indexOf("#");
                   if (ktv != -1) {
                       var ktvid = window.location.href.substring(ktv + 1, window.location.href.length);
                       $.getJSON(liinfor + ktvid, function (data, status) {
                           fillinfor(data, ktvid, "#caption", "#ktvslide");
                       });
                   }
                   $("#contentktv div a").click(function () {
                       var ktvid = $(this).attr("rel");
                       $.getJSON(liinfor + ktvid, function (data, status) {
                           fillinfor(data, ktvid, "#caption", "#ktvslide");
                       });
                       return false;
                   });
               });

           });
    </script>
</asp:Content>
